package com.ruoyi.ap.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * 种植情况对象 ap_plant
 * 
 * @author HuaQP
 * @date 2023-09-11
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class Plant extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    @NotNull(message = "日期不能为空")
    private Date dt;

    /** 农户 */
    @Excel(name = "农户")
    @NotNull(message = "农户不能为空")
    private Long farmerId;

    /** 村庄 */
    @Excel(name = "村庄")
    @NotNull(message = "村庄不能为空")
    private Long villageId;

    /** 产品分类 */
    @Excel(name = "产品分类")
    @NotNull(message = "产品分类不能为空")
    private Long categoryId;

    /** 种植面积 */
    @Excel(name = "种植面积")
    private BigDecimal acreage;

    /** 小地名 */
    @Excel(name = "小地名")
    private String area;

    /** 位置x */
    @Excel(name = "位置x")
    private BigDecimal locationX;

    /** 位置y */
    @Excel(name = "位置y")
    private BigDecimal locationY;

}
